import ddddocr
import time
start = time.time()
ocr = ddddocr.DdddOcr(old=True)

with open("test.jpg", 'rb') as f:
    image = f.read()

res = ocr.classification(image)
print(res)
end = time.time()

print('Running time: %s Seconds'%(end-start))